package hongcheng.code_generator.exception;

import cn.hutool.core.util.StrUtil;

/***
 * 	自定义异常类
 * */
@SuppressWarnings("serial")
public class CustomException extends RuntimeException{

	public CustomException(String message) {
		super(message);
	}
	
	public CustomException(String message,String ...args) {
		super(StrUtil.format(message, args));
	}
	
	public CustomException(String message, Throwable cause) {
		super(message,cause);
	}
	
	public CustomException( Throwable cause,String message,String ...args) {
		super(StrUtil.format(message, args),cause);
	}
}
